package br.com.jackson.controller;

import java.io.IOException;

import br.com.jackson.app.Principal;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.control.Label;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.control.MenuItem;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.FlowPane;

public class ProtocoloController {

    @FXML
    private Label lbDesenvolvidoPor;

    @FXML
    private MenuItem mnSolicitacoes;

    @FXML
    private AnchorPane apPrincipal;

    @FXML
    private MenuItem mnAndamentos;

    @FXML
    private MenuItem mnSetores;

    @FXML
    private Menu mnCadastrosBar;

    @FXML
    private MenuItem mnEnderecos;

    @FXML
    private Label lbSistemaProtocolo;

    @FXML
    private MenuItem mnFechamentos;

    @FXML
    private MenuItem mnSair;

    @FXML
    private MenuItem mnPessoas;

    @FXML
    private FlowPane fpBottom;

    @FXML
    private MenuBar mnMenuBar;

    @FXML
    private MenuItem mnProcessos;

    @FXML
    private MenuItem mnUsuarios;

    @FXML
    private Menu mnSairBar;

    @FXML
    private Menu mnProcessosBar;

    @FXML
    private FlowPane fpTop;

    @FXML
    void eventMenuSetor(ActionEvent event) {
    	
    	try{
    		Parent root = FXMLLoader.load(getClass().getResource("/br/com/jackson/view/Setores.fxml"));
    		Principal.SCENE.setRoot(root);
    	}catch (IOException ex) {
    		ex.printStackTrace();
    	}

    }

    @FXML
    void eventMenuSolicitacao(ActionEvent event) {

    }

    @FXML
    void eventMenuEndereco(ActionEvent event) {

    }

    @FXML
    void eventMenuPessoa(ActionEvent event) {

    }

    @FXML
    void eventMenuUsuario(ActionEvent event) {

    }

    @FXML
    void eventMenuProcesso(ActionEvent event) {

    }

    @FXML
    void eventMenuAndamento(ActionEvent event) {

    }

    @FXML
    void eventMenuFechamento(ActionEvent event) {

    }

}
